//
//  StatisticsCell.m
//  ios-supplier
//
//  Created by feynmanyuan on 15/4/21.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#import "StatisticsCell.h"

@interface StatisticsCell()
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *orderCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *merchandiseCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@end

@implementation StatisticsCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

//    NSLog(@"select");
    // Configure the view for the selected state
}

-(void)setStatistics:(JFBSettlementStatisticsDS*)statistics {
    self.dateLabel.text = statistics.date;
    self.orderCountLabel.text = [NSString stringWithFormat:@"%lu", (unsigned long)statistics.orderCount];
    self.merchandiseCountLabel.text = [NSString stringWithFormat:@"%lu", (unsigned long)statistics.merchandiseCount];
    self.priceLabel.text = [NSString stringWithFormat:@"¥ %@", [NSString decimalToString:statistics.price]];
}

@end
